import request from "@/utils/request.js"

//点击登录
export function login(data) {
	return request({
		url: '/main/login',
		method: 'POST',
		data: data,
	})
}

//获取登录用户信息
export function loginInfo(data) {
	return request({
		url: '/main/current',
		method: 'POST',
		data: data,
	})
}

//退出登录
export function logout(data) {
	return request({
		url: '/main/logout',
		method: 'POST',
		data: data,
	})
}

//获取工序组
export function queryDictByType(data) {
	return request({
		url: '/dict/queryDictByType',
		method: 'POST',
		data: data,
	})
}
//获取工序资料
export function queryList(data) {
	return request({
		url: '/procedure/queryList',
		method: 'POST',
		data: data,
	})
}
//添加工序
export function addProcedure(data) {
	return request({
		url: '/equipmentProcedure/addProcedure',
		method: 'POST',
		data: data,
	})
}
//删除工序
export function delEntityById(data) {
	return request({
		url: '/equipmentProcedure/delEntityById',
		method: 'POST',
		data: data,
	})
}
//查询已设置工序
export function queryListProcedure(data) {
	return request({
		url: '/equipmentProcedure/queryListProcedure',
		method: 'POST',
		data: data,
	})
}